import moment from "moment";

export const formateDate = (value: string | Date, parttern: string) => {
  let formatParttern = parttern || 'YYYY年MM月DD日 HH:mm:ss'
  return moment(value).format(formatParttern);
}

export const getCurrentTime = () => {
  return moment().format('YYYY-MM-DD HH:mm:ss')
}